package view.aimate
{
	import ricky.animate.AnimSprite;
	import ricky.Interface.IFrameManager;
	import ricky.loader.Request;
	
	import rickyGame.config.unit.Unit;
	
	/**
	 * 可编辑的对象
	 */
	public class EditeAnimSprite extends AnimSprite
	{
		public function EditeAnimSprite(fmanager:IFrameManager=null, spritName:String="")
		{
			super(fmanager, spritName);
		}
		
		
		override public function onComplete(req:Request):void
		{
			super.onComplete(req);
			if(onCompFun!=null)
				onCompFun(this);
		}
		
		public var onCompFun:Function;
		
		//
		private var _unit:Unit;
		private var _ai:String;
		private var _level:String="1";
		private var _group:int;//
		private var _dir:uint=4;

		public function get dir():uint
		{
			return _dir;
		}

		public function set dir(value:uint):void
		{
			_dir = value;
		}

		public function get unit():Unit
		{
			return _unit;
		}

		public function set unit(value:Unit):void
		{
			_unit = value;
		}

		public function get ai():String
		{
			return _ai;
		}

		public function set ai(value:String):void
		{
			_ai = value;
		}

		public function get level():String
		{
			return _level;
		}

		public function set level(value:String):void
		{
			_level = value;
		}

		public function get group():int
		{
			return _group;
		}

		public function set group(value:int):void
		{
			_group = value;
		}

		

	}
}